package com.erb.service.zwj;

import com.erb.entity.Pager;
import com.erb.entity.Product;
import com.erb.entity.ProductExtends;

import java.util.List;

public interface IProductService {
	List<Product> findAll(Pager pager, ProductExtends productExtends);

	List<Product> findAllForList(Pager pager, ProductExtends productExtends);

	List<Product> findAllForSimpleList(Pager pager, ProductExtends productExtends);

	int findCount(ProductExtends productExtends);

	Product findProductById(Integer id);

	boolean saveProduct(Product product);

	boolean modifyProduct(Product product);

	boolean modifyProductIncrHaveMoney(int pid, double haveMoney);

	boolean deleteProduct(Integer id);
}
